﻿Imports System.Drawing

''' <summary>
''' 路径节点接口
''' </summary>
Public Interface IAStarNode

    ''' <summary>
    ''' Location 节点所在的位置， 其X值代表ColumnIndex，Y值代表LineIndex
    ''' </summary>
    Property Location As Point

    ''' <summary>
    ''' PreviousNode 父节点，即是由哪个节点导航到当前节点的
    ''' </summary>
    Property PreviousNode As IAStarNode

    ''' <summary>
    ''' CostF 从起点导航经过本节点然后再到目的节点的估算总代价
    ''' </summary>
    ReadOnly Property CostF As Integer

    ''' <summary>
    ''' CostG 从起点导航到本节点的代价
    ''' </summary>
    Property CostG As Integer

    ''' <summary>
    ''' CostH 使用启发式方法估算的从本节点到目的节点的代价
    ''' </summary>
    Property CostH As Integer

End Interface